import axios from './config'
// 登录验证
export const login = data => axios.post('/login', data)
//查询班级
export const selectClass = params => axios.get("/class", { params })
// 添加班级信息
export const addClass = data => axios.post('/class', data)
// 上传图片
export const upload = data => axios.post('/upload', data)
//删除
export const delClass = params => axios.delete("/class", { params })
// 编辑班级
export const editClass = data => axios.put("/class", data)
// 查询未开班的班级信息
export const selectClassByStatus = status => axios.get(`/class/${status}`)
//添加新生信息
export const addNewStudent = data => axios.post('/student', data)